package cn.dhnep.demo.service.impl;

import cn.dhnep.demo.pojo.Account;
import cn.dhnep.demo.pojo.Earnings;
import cn.dhnep.demo.pojo.Feedback;
import cn.dhnep.demo.mapper.FeedbackMapper;
import cn.dhnep.demo.service.FeedbackService;
import cn.dhnep.demo.util.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dhn
 * @since 2021-08-30
 */
@Service
public class FeedbackServiceImpl extends ServiceImpl<FeedbackMapper, Feedback> implements FeedbackService {

    @Resource
    private FeedbackMapper feedbackMapper;


    @Override
    public List<Feedback> selectPageList(Page page) {
        return feedbackMapper.selectPageList(page);
    }

    @Override
    public Integer selectPageCount(Page page) {
        return feedbackMapper.selectPageCount(page);
    }

    @Override
    public Feedback idqueryfeedback(Feedback feedback) { return feedbackMapper.idqueryfeedback(feedback); }

    @Override
    public int updatefeedback(Feedback feedback) { return feedbackMapper.updatefeedback(feedback); }

    @Override
    public Account selemoneycount(Account account) { return feedbackMapper.selemoneycount(account); }

    @Override
    public int updatemoney(Account account) { return feedbackMapper.updatemoney(account); }

    @Override
    public int addearnings(Earnings earnings) {
        return feedbackMapper.addearnings(earnings);
    }

}
